package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "orders")
@Accessors(chain = true)
public class Orders implements Serializable {
    /**
     * 订单id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    @TableField(value = "order_number")
    private String orderNumber;

    /**
     * 订单人id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 电影id
     */
    @TableField(value = "screening_id")
    private Integer screeningId;

    /**
     * 订单时间
     */
    @TableField(value = "order_time")
    private Date orderTime;

    /**
     * 支付方式
     */
    @TableField(value = "payment")
    private String payment;

    /**
     * 订单总金额
     */
    @TableField(value = "money")
    private Double money;

    /**
     * 下单未支付，下单已支付，开映前15分钟，已开映，退款）
     */
    @TableField(value = "state")
    private String state;

    /**
     * enable
     */
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_ORDER_NUMBER = "order_number";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_SCREENING_ID = "screening_id";

    public static final String COL_ORDER_TIME = "order_time";

    public static final String COL_PAYMENT = "payment";

    public static final String COL_MONEY = "money";

    public static final String COL_STATE = "state";

    public static final String COL_ENABLE = "enable";
}